// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '发货表',
        name: 'shipment',
        url: "/shipment/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"shipment_no":"","product_name":"","product_key":null,"order_no":"","company_id":"","Num":null,"Address":""};
    const editFormOptions = [[{"dataKey":"D1","data":[],"title":"发货编号","field":"shipment_no","type":"select"},
                               {"dataKey":"Name","data":[],"title":"商品名称","field":"product_name","type":"select"}],
                              [{"title":"订单编号","field":"order_no","type":"text","disabled":true},
                               {"dataKey":"Company","data":[],"title":"货运公司名称","field":"company_id","type":"select"}],
                              [{"title":"下单数量","field":"Num","type":"number","disabled":true},
                               {"title":"订单地址","field":"Address","type":"textarea","minRows":2,"maxRows":4,"disabled":true}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'id',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'shipment_no',title:'发货编号',type:'string',bind:{ key:'D1',data:[]},width:110,align:'left',sort:true},
                       {field:'product_name',title:'商品名称',type:'string',bind:{ key:'Name',data:[]},width:120,align:'left'},
                       {field:'product_key',title:'商品编号',type:'string',width:110,align:'left',hidden:true},
                       {field:'order_no',title:'订单编号',type:'string',width:110,align:'left'},
                       {field:'company_id',title:'货运公司名称',type:'int',bind:{ key:'Company',data:[]},width:110,align:'left'},
                       {field:'Num',title:'下单数量',type:'int',width:120,align:'left'},
                       {field:'Address',title:'地址',type:'string',width:120,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}